<template>
    <div>
     
        <button @click="handleClick">展开/折叠侧边栏</button>
        <div>Vue3的单文件navbar</div>        
    </div>
</template>

<script>
export default {
methods:{
    handleClick(){
        // console.log('click');
        this.$emit('event')
    }
},



}
</script>



<style scoped>
div{
    background-color:gray;
    
}
</style>